package cn.wit.db.entity;

public class Department {
    private Integer dno;

    private String dname;

    public Integer getDno() {
        return dno;
    }

    public void setDno(Integer dno) {
        this.dno = dno;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dno=").append(dno);
        sb.append(", dname=").append(dname);
        sb.append("]");
        return sb.toString();
    }
}